import 'package:changxindianzishangwu/http/base/ec_base_request.dart';
import 'package:changxindianzishangwu/http/request/sms_code_request.dart';
import 'package:changxindianzishangwu/http/zd_net.dart';

const SIMPLE = 0;
const REGIS = 1;
const FORGET_PASSWORD = 2;///修改密码和绑定手机号

class SmsCodeDao {
  static getCode(String telephone, String areaCode, int isRegister) async {
    EcBaseRequest request = new SmsCodeRequest();
    request
        .add("telephone", telephone)
        .add("areaCode", areaCode)
        .add("isRegister", isRegister);

    var result = await ZdNet.getInstance().send(request);
    print("test::::: ${result}");
    return result;
  }
}
